﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WJSHWebApi.DBModel
{
    [Table("Wireless_Entity")]
    public class Wireless_Entity:BaseDbmodel
    {
        [Key]
        public int id { get; set; }
        /// <summary>
        /// 设备编号
        /// </summary>
        public int Devid { get; set; }
        /// <summary>
        /// 无线模块IP地址
        /// </summary>
        public string WirelessIP { get; set; }
        /// <summary>
        /// 地址号
        /// </summary>
        public int WirelessNum { get; set; } = 0;
        /// <summary>
        /// 是否可以使用
        /// </summary>
        public bool Available { get; set; }
        /// <summary>
        /// 否为呼叫器 是为门控制
        /// </summary>
        public bool IsIOmodule { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        public string Remark { get; set; }

        public Wireless_Entity Clone()
        {
            Wireless_Entity t = new Wireless_Entity()
            {
                Devid = this.Devid,
                WirelessIP = this.WirelessIP,
                WirelessNum = this.WirelessNum,
                Available = this.Available,
                Remark = this.Remark,
            };
            return t;
        }
    }
}
